
package web.control;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;


@ManagedBean
@RequestScoped
public class Accesscontroller {
public String login;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
public String key;
    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }
    public Accesscontroller() {
    }
    public String val(){
        if (this.login.equalsIgnoreCase("Nesser")&& this.key.equalsIgnoreCase("123"))
        {
            return "Bienvenido";
        }
            
            else
        {
             return "error";
        }
       
    }
}
